/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package controlacciones.ejb3.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 *
 * @author vanessa
 */
@Entity
@Table(name = "tb_parametros")
@NamedQueries({
    @NamedQuery(name = "TbParametros.findAll", query = "SELECT t FROM TbParametros t"),
    @NamedQuery(name = "TbParametros.findByIdParametro", query = "SELECT t FROM TbParametros t WHERE t.idParametro = :idParametro"),
    @NamedQuery(name = "TbParametros.findByParam1", query = "SELECT t FROM TbParametros t WHERE t.param1 = :param1"),
    @NamedQuery(name = "TbParametros.findByParam2", query = "SELECT t FROM TbParametros t WHERE t.param2 = :param2"),
    @NamedQuery(name = "TbParametros.findByParam3", query = "SELECT t FROM TbParametros t WHERE t.param3 = :param3"),
    @NamedQuery(name = "TbParametros.findByParam4", query = "SELECT t FROM TbParametros t WHERE t.param4 = :param4"),
    @NamedQuery(name = "TbParametros.findByParam5", query = "SELECT t FROM TbParametros t WHERE t.param5 = :param5"),
    @NamedQuery(name = "TbParametros.findByDescripcion", query = "SELECT t FROM TbParametros t WHERE t.descripcion = :descripcion"),
    @NamedQuery(name = "TbParametros.findByParam7", query = "SELECT t FROM TbParametros t WHERE t.param7 = :param7"),
    @NamedQuery(name = "TbParametros.findByParam8", query = "SELECT t FROM TbParametros t WHERE t.param8 = :param8"),
    @NamedQuery(name = "TbParametros.findByContFamiliar", query = "SELECT t FROM TbParametros t WHERE t.contFamiliar = :contFamiliar"),
    @NamedQuery(name = "TbParametros.findByParam9", query = "SELECT t FROM TbParametros t WHERE t.param9 = :param9"),
    @NamedQuery(name = "TbParametros.findByFecha", query = "SELECT t FROM TbParametros t WHERE t.fecha = :fecha"),
    @NamedQuery(name = "TbParametros.findByParam10", query = "SELECT t FROM TbParametros t WHERE t.param10 = :param10"),
    @NamedQuery(name = "TbParametros.findByParamEntero", query = "SELECT t FROM TbParametros t WHERE t.paramEntero = :paramEntero")})
public class TbParametros implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @Column(name = "id_parametro")
    private String idParametro;
    @Column(name = "param1")
    private String param1;
    @Column(name = "param2")
    private String param2;
    @Column(name = "param3")
    private Character param3;
    @Column(name = "param4")
    private String param4;
    @Column(name = "param5")
    private String param5;
    @Column(name = "descripcion")
    private String descripcion;
    @Column(name = "param7")
    private BigDecimal param7;
    @Column(name = "param8")
    private BigDecimal param8;
    @Column(name = "cont_familiar")
    private Integer contFamiliar;
    @Column(name = "param9")
    private Boolean param9;
    @Column(name = "fecha")
    @Temporal(TemporalType.TIMESTAMP)
    private Date fecha;
    @Column(name = "param10")
    private String param10;
    @Column(name = "paramEntero")
    private Integer paramEntero;

    public TbParametros() {
    }

    public TbParametros(String idParametro) {
        this.idParametro = idParametro;
    }

    public String getIdParametro() {
        return idParametro;
    }

    public void setIdParametro(String idParametro) {
        this.idParametro = idParametro;
    }

    public String getParam1() {
        return param1;
    }

    public void setParam1(String param1) {
        this.param1 = param1;
    }

    public String getParam2() {
        return param2;
    }

    public void setParam2(String param2) {
        this.param2 = param2;
    }

    public Character getParam3() {
        return param3;
    }

    public void setParam3(Character param3) {
        this.param3 = param3;
    }

    public String getParam4() {
        return param4;
    }

    public void setParam4(String param4) {
        this.param4 = param4;
    }

    public String getParam5() {
        return param5;
    }

    public void setParam5(String param5) {
        this.param5 = param5;
    }

    public String getDescripcion() {
        return descripcion;
    }

    public void setDescripcion(String descripcion) {
        this.descripcion = descripcion;
    }

    public BigDecimal getParam7() {
        return param7;
    }

    public void setParam7(BigDecimal param7) {
        this.param7 = param7;
    }

    public BigDecimal getParam8() {
        return param8;
    }

    public void setParam8(BigDecimal param8) {
        this.param8 = param8;
    }

    public Integer getContFamiliar() {
        return contFamiliar;
    }

    public void setContFamiliar(Integer contFamiliar) {
        this.contFamiliar = contFamiliar;
    }

    public Boolean getParam9() {
        return param9;
    }

    public void setParam9(Boolean param9) {
        this.param9 = param9;
    }

    public Date getFecha() {
        return fecha;
    }

    public void setFecha(Date fecha) {
        this.fecha = fecha;
    }

    public String getParam10() {
        return param10;
    }

    public void setParam10(String param10) {
        this.param10 = param10;
    }

    public Integer getParamEntero() {
        return paramEntero;
    }

    public void setParamEntero(Integer paramEntero) {
        this.paramEntero = paramEntero;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (idParametro != null ? idParametro.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof TbParametros)) {
            return false;
        }
        TbParametros other = (TbParametros) object;
        if ((this.idParametro == null && other.idParametro != null) || (this.idParametro != null && !this.idParametro.equals(other.idParametro))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "controlacciones.ejb3.entity.TbParametros[idParametro=" + idParametro + "]";
    }

}
